home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Can't externalize an FW_CArcShape
- Sent: 5/29/96 10:45 AM
- Received: 5/29/96 11:41 AM
- From: Arni McKinley, motion@nbn.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- I noticed this is happening to FW_CBitmapShape as well.
-
- Arni
-
-
- >I am trying to externalize an FW_CArcShape object, and I'm not having
- >much luck.
- >When I attempt an FW_WRITE_DYNAMIC_OBJECT, I get the following
- >errors:
- >
- >FWArDyna.cpp @286: GetNameToLabelMap().Find(tempName)
- >FWArDyna.cpp @290: item
- >FWArDyna.cpp @500: ("No registered archiving functions for class
- >label", pair != NULL)
- >FW_CFixedAllocator: An object of
- >type
- >FW_CPriv{BW|Color}PatternRep
- >has
- >not
- >been
- >deleted
- >properly.
- >FW_CFixedAllocator:
- >An
- >object
- >of
- >type
- >FW_CPrivFontRep
- >has
- >not
- >been
- >deleted
- >properly.
- >FW_CFixedAllocator:
- >An
- >object
- >of
- >type
- >FW_CPrivStyleRep
- >has
- >not
- >been
- >deleted
- >properly.
- >FW_CFixedAllocator:
- >An
- >object
- >of
- >type
- >FW_CPrivInkRep
- >has
- >not
- >been
- >deleted
- >properly.
- >
- >The
- >method
- >the
- >causes
- >the
- >problem
- >is
- >listed
- >below:
- >
- >//-------------------------------------------------------------------------
- >---------------
- >//
- >CPieContent::ExternalizePartKind
- >//-------------------------------------------------------------------------
- >---------------
- >
- >void CPieContent::ExternalizePartKind(Environment* ev, ODStorageUnit*
- >storageUnit)
- >{
- > // Write the two text data strings to storage
- > FW_PStorageUnitSink suSink(ev, storageUnit, kODPropContents,
- >fPiePart->GetPartKind(ev));
- > FW_CWritableStream archive(suSink);
- > unsigned long stringCount = 1;
- > unsigned long arcCount = 0;
- >
- > archive << stringCount;
- > archive << fCentered;
- > archive << fTextData;
- >
- > arcCount = fArcCollection.Count();
- > archive <<
- >arcCount;
- >
- > FW_TOrderedCollectionIterator<FW_CArcShape>
- >arcIter(&fArcCollection);
- > FW_CArcShape
- >*arc;
- > for(arc = arcIter.First(); arcIter.IsNotComplete(); arc =
- >arcIter.Next())
- > {
- > FW_WRITE_DYNAMIC_OBJECT(archive,arc,FW_CArcShape); // Causes
- >errors!!!
- > }
- >}
- >
- >
- >What am I doing wrong?
- >
- >Walter
-
-